package com.itany.boot.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shixiaojun@itany
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/f1")
    public String f1(){
        return "<h1>Hello SpringBoot</h1>";
    }

    @PostMapping("/f2")
    public String f2(){
        return "<h1>Hello f2</h2>";
    }

}
